package Entity;

import java.sql.Date;

import java.util.List;

public class Self_Booked_Page {
    private int page_n;
    private String id;
    private Date date;
    private int info_s;
    private int info_e;
    private int sum;
	private List<Course> c_list;
	public int getSum() {
		return sum;
	}

	public void setSum(int sum) {
		this.sum = sum;
	}

    public int getPage_n() {
        return page_n;
    }

    public void setPage_n(int page_n) {
        this.page_n = page_n;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getInfo_s() {
        return info_s;
    }

    public void setInfo_s(int info_s) {
        this.info_s = info_s;
    }

    public int getInfo_e() {
        return info_e;
    }

    public void setInfo_e(int info_e) {
        this.info_e = info_e;
    }

    public List<Course> getC_list() {
        return c_list;
    }

    public void setC_list(List<Course> c_list) {
        this.c_list = c_list;
    }

    public void fix() {
        info_s=(page_n-1)*10+1;
        info_e=page_n*10;
    }


	public Self_Booked_Page(int page_n, String id, Date date, int info_s, int info_e, int sum, List<Course> c_list) {
		super();
		this.page_n = page_n;
		this.id = id;
		this.date = date;
		this.info_s = info_s;
		this.info_e = info_e;
		this.sum = sum;
		this.c_list = c_list;
	}

	@Override
	public String toString() {
		return "Self_Booked_Page [page_n=" + page_n + ", id=" + id + ", date=" + date + ", info_s=" + info_s
				+ ", info_e=" + info_e + ", sum=" + sum + ", c_list=" + c_list + "]";
	}

	public Self_Booked_Page() {
		// TODO Auto-generated constructor stub
	}

}
